|
|
CreeD wrote:
>
> Hi, I'm having trouble figuring out rand and seed.
> When I declare something like
>
> #declare Random1=seed(123)
>
> and then use
>
> rand(Random1)
>
> I get semi random effects, but I can't figure out what the range of
> possible
> random numbers I'm outputting will be (I'm using it in a color_map
> statement).
>
> Is the random number going to be between 1 and 123? That seems unlikely
> from
> the results I get. Is it 1, 2, or 3, or any value in between? Am I
> completely off base?
It is between 0 and 1.
> Can I specify a range? , i.e. I want -
>
> color rgb <random something between 1 and 5, 5, 5>
>
For value between 1 and 5 use following expression:
(rand()+1)*4
> Also, is there a way to make POV get a new, completely random evaluation of
> my random number every time it renders, so that I can keep experimenting
> until I get something I like?
>
For this you will have to feed seed function with random number, but
question is, how this random number will be generated? To my knowledge
there is no easy way to accomplish it.
But is it good idea at all: if you got what you want, then how will you
know, what was exact value of random number in order to repeat it? ;-)
> Thanks in advance.
You welcome. But reading a manual will help a lot and will give answer
to some questions (e.g. rand() output limits).
Post a reply to this message
|
|